package cn.springspace.app.enums;

public enum EventTypeEnum {
    EVENT_TYPE_196885("刷卡+指纹认证通过", "196885"),
    EVENT_TYPE_196887("指纹+密码认证通过", "196887"),
    EVENT_TYPE_198914("合法卡比对通过", "198914"),
    EVENT_TYPE_198915("刷卡+密码认证通过", "198915"),
    EVENT_TYPE_197121("密码错误", "197121"),
    EVENT_TYPE_197122("输入卡号错误", "197122"),
    EVENT_TYPE_197123("输入密码而非卡号", "197123"),
    EVENT_TYPE_197124("卡号长度错误", "197124"),
    EVENT_TYPE_197125("卡号数字检查错误", "197125"),
    EVENT_TYPE_197634("无此卡号", "197634"),
    EVENT_TYPE_197633("卡号过期", "197633"),
    EVENT_TYPE_198145("刷卡+密码不开门", "198145"),
    EVENT_TYPE_197635("卡未分配权限", "197635"),
    EVENT_TYPE_196886("刷卡+指纹+密码通过", "196886"),
    EVENT_TYPE_196897("工号+密码认证通过", "196897"),
    EVENT_TYPE_197127("指纹比对通过", "197127"),
    EVENT_TYPE_197128("指纹比对失败", "197128"),
    EVENT_TYPE_197136("刷卡+指纹+密码失败", "197136"),
    EVENT_TYPE_197137("刷卡+指纹+密码超时", "197137"),
    EVENT_TYPE_197140("指纹不存在", "197140"),
    EVENT_TYPE_197158("工号+密码认证失败", "197158"),
    EVENT_TYPE_196888("人脸+指纹认证通过", "196888"),
    EVENT_TYPE_197141("人脸+指纹认证失败", "197141"),
    EVENT_TYPE_197142("人脸+指纹认证超时", "197142"),
    EVENT_TYPE_196889("人脸+密码认证通过", "196889"),
    EVENT_TYPE_197143("人脸+密码认证失败", "197143"),
    EVENT_TYPE_197144("人脸+密码认证超时", "197144"),
    EVENT_TYPE_196890("人脸+刷卡认证通过", "196890"),
    EVENT_TYPE_197145("人脸+刷卡认证失败", "197145"),
    EVENT_TYPE_197146("人脸+刷卡认证超时", "197146"),
    EVENT_TYPE_196891("人脸+密码+指纹认证通过", "196891"),
    EVENT_TYPE_197147("人脸+密码+指纹认证失败", "197147"),
    EVENT_TYPE_197148("人脸+密码+指纹认证超时", "197148"),
    EVENT_TYPE_196892("人脸+刷卡+指纹认证通过", "196892"),
    EVENT_TYPE_197149("人脸+刷卡+指纹认证失败", "197149"),
    EVENT_TYPE_197150("人脸+刷卡+指纹认证超时", "197150"),
    EVENT_TYPE_196893("人脸认证通过", "196893"),
    EVENT_TYPE_197151("人脸认证失败", "197151"),
    EVENT_TYPE_197160("智能分析失败", "197160"),
    EVENT_TYPE_197161("真人检测失败", "197161"),
    EVENT_TYPE_197162("人证比对通过", "197162"),
    EVENT_TYPE_197163("人证比对失败", "197163"),
    EVENT_TYPE_196874("首卡比对通过", "196874"),
    EVENT_TYPE_196875("行动不便人士卡比对通过", "196875"),
    EVENT_TYPE_196883("多重认证成功", "196883"),
    EVENT_TYPE_196884("多重认证超级密码成功", "196884"),
    EVENT_TYPE_198918("巡查卡比对通过", "198918"),
    EVENT_TYPE_198921("超级卡比对通过", "198921"),
    EVENT_TYPE_199425("胁迫卡比对通过", "199425"),
    EVENT_TYPE_197383("反潜回认证失败", "197383"),
    EVENT_TYPE_197392("卡不在多重认证时段内", "197392"),
    EVENT_TYPE_197393("多重认证超级密码错误", "197393"),
    EVENT_TYPE_197394("多重认证远程认证失败", "197394"),
    EVENT_TYPE_197395("行动不便人士卡未分配权限", "197395"),
    EVENT_TYPE_197396("胁迫卡未分配权限", "197396"),
    EVENT_TYPE_197397("超级卡未分配权限", "197397"),
    EVENT_TYPE_197400("多重认证重复认证", "197400"),
    EVENT_TYPE_197401("多重认证超时", "197401"),
    EVENT_TYPE_198146("互锁中无法开门", "198146"),
    EVENT_TYPE_198149("反潜回读卡器刷卡无效", "198149"),
    EVENT_TYPE_197399("巡查卡无效时段", "197399"),
    EVENT_TYPE_198658("互锁门未关闭", "198658"),
    EVENT_TYPE_197889("黑名单事件", "197889"),
    EVENT_TYPE_197384("时段组错误", "197384"),
    EVENT_TYPE_197378("假期权限不合", "197378"),
    EVENT_TYPE_197377("权限不合", "197377"),
    EVENT_TYPE_197138("指纹+密码认证失败", "197138"),
    EVENT_TYPE_197134("刷卡+指纹认证失败", "197134"),
    EVENT_TYPE_199429("卡号认证超次报警", "199429"),
    EVENT_TYPE_199681("解除警报", "199681"),
    EVENT_TYPE_199428("胁迫报警", "199428"),
    UNKNOWN("未知", "UNKNOWN");

    private String labelCn;
    private String value;

    public String getLabelCn() {
        return labelCn;
    }

    public String getValue() {
        return value;
    }

    EventTypeEnum(String labelCn, String value) {
        this.labelCn = labelCn;
        this.value = value;
    }

    public static String getLabelCnByValue(String value) {
        for (EventTypeEnum eventType : EventTypeEnum.values()) {
            if (eventType.name().equals("EVENT_TYPE_" + value)) {
                return eventType.getLabelCn();
            }
        }
        return null;
    }
}
